package cn.mymall.vo.product;


import cn.mymall.constant.MallConstant;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
@Data
public class ProductReqVo implements Serializable {
    private static final long serialVersionUID = 1l;
    private Integer id;
    private String partnerProductId;            //供应商商品ID（同步供应商商品数据唯一ID）
    private String partner;
    private String name;                        //名称
    private Double price;                        //价格
    private String priceDesc;                    //价格描述
    private String logo;                        //图片
    private String introduction;                //介绍
    private String productCode;                    //商品货号
    private String note;                        //注意事项
    private Integer categoryId;                    //商品分类
    private Integer subCategoryId;				//子类id
    private String attrName;
    private String status;                        //状态

    private String otherInfo;                    //其他信息
    private String packageList;                    //包装清单
    private String afterSaleService;            //售后服务

    private Integer shippingTemplateId;            //运费模板ID
    private Integer vendorId;                    //供应商id
    private Integer shipperId;                    //发货商ID
    private Integer brandId;                    //品牌ID

    private Integer sortNo;                        //排序
    private Timestamp onSaleTime;                //定时上架时间
    private Timestamp offSaleTime;                //定时下架时间
    private List<String> pictureList;         //商品展示图
    private List<SkuVo> skuList;                //价格列表

    /**
     * 普通商品
     */
    public ProductReqVo() {
        this.status = MallConstant.SKU_STATUS_OFF_SALE;
        this.otherInfo = "{}";
        this.sortNo = 1;
    }

}
